import request from '@/utils/request'

// /**
//  * 获取图片验证码
//  * @param {number} clientToken 随机数
//  * @returns Promise
//  */
// export const getImageCode = (clientToken) => request({
//   url: `/api/user-service/user/imageCode/${clientToken}`

// })

/**
 * 登录
 * @param {*} data {loginName,password,code...}
 * @returns Promise
 */
export const loginAPI = (data) => request({
  url: '/api/user-service/user/login',
  method: 'POST',
  data
})
